package com.furns.dao.impl;

import com.furns.dao.BasicDAO;
import com.furns.dao.ManagerDAO;
import com.furns.entity.Manager;
import com.furns.entity.Member;

/**
 * @Author LuoJiaCheng
 * @ID 2240129126
 * @Version 1.0
 */
public class ManagerDAOImpl extends BasicDAO<Manager> implements ManagerDAO {
    @Override
    public Manager queryMangerByNameAndPassword(String name, String password) {
        String sql="select id,name,password from manager where name=? and password=?";
        Manager manager = querySingle(sql, Manager.class, name, password);
        return manager;
    }
}
